package com.ruchir.prac.services;

import org.springframework.transaction.annotation.Transactional;

import com.ruchir.prac.beans.LicenseBean;
import com.ruchir.prac.services.internal.LicenseRepository;


public class LicenseImpl implements License {

	
//	private HibernateLicenseRepository licenseRepository;

	private LicenseRepository licenseRepository;
	

	public LicenseImpl(LicenseRepository pLicenseRepository){
		this.licenseRepository = pLicenseRepository;
	}
	
	@Transactional
	public LicenseBean getLicenseByName(String pLicenseName) {
		return licenseRepository.findByName(pLicenseName);
	}

}
